package cn.gnp.framework.eeamis.dao.goods;

import java.util.List;

import cn.gnp.framework.persist.dao.IBaseDao;
import cn.gnp.framework.core.exception.NotCodeException;
import cn.gnp.framework.eeamis.model.goods.GoodsCodeModel;


public interface IGoodsCodeDao extends IBaseDao<GoodsCodeModel, Integer> {
    
    public int countAllByGoods(int goodsId);
    
    
    public List<GoodsCodeModel> listAllByGoods(int pn, int goodsId);

    public GoodsCodeModel getOneNotExchanged(int goodsId) throws NotCodeException;
    
}
